package com.insta.java.webservice;

import java.util.List;

import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

import com.tocea.formation.AuthorDTO;
import com.tocea.formation.BookDTO;

@SuppressWarnings("restriction")
@WebService
@SOAPBinding(style= SOAPBinding.Style.RPC)
public interface IBookWSD {
	
	public void addBook(BookDTO b);
	public void updateBook(BookDTO b);
	public void deleteBook(BookDTO b);
	public List<BookDTO> findBook(String s);
	public List<BookDTO> getAllBook();
	boolean exists(String name);
	
	public void addAuthor(AuthorDTO a);
	public void updateAuthor(AuthorDTO a);
	public void deleteAuthor(AuthorDTO a);
	public List<AuthorDTO> findByNameAuthor(String nom);
	public List<AuthorDTO> getAll();
	public List<AuthorDTO> findByBookAuthor(String nom);
	void addSimpleAuthor(String fn, String ln);
	void getAuthor(String _firstname, String _lastname);
}
